/*
 * @Author: HaoyangDu@wits.com
 * @description: 
 * @param: 
 * @return: 
 */
import { createSSRApp } from "vue";
import App from "./App.vue";
// 引入uview-plus
import uviewPlus from "uview-plus";
import * as Pinia from 'pinia';

export function createApp() {
  const app = createSSRApp(App);
  // 创建Pinia实例  // 将pinia实例挂载到vue实例上
  app.use(Pinia.createPinia());
  app.use(uviewPlus);
  uni.$u.config.unit = "rpx";
  return {
    app,
	Pinia, // 此处必须将 Pinia 返回
  };
}
